<template>
  <view>
    <baseHead :title="title" bg="#ffffff" color="#000000"></baseHead>
    <view style="width: 100%; height: 100%; text-align: center">
      <image
        :src="
          id == 1
            ? 'https://source.huiguan-china.com/static/license/corp_license.jpg'
            : id == 2
            ? 'https://source.huiguan-china.com/static/license/hr_service_license.jpg'
            : 'https://source.huiguan-china.com/static/license/icp_add_service.jpg'
        "
        mode="widthFix"
      ></image>
    </view>
  </view>
</template>

<script>
import baseHead from "@/pages/component/baseHead.vue";
export default {
  components: {
    baseHead,
  },
  data() {
    return {
      title: "",
      id: null,
      src: this.$config.domain.staticUrl,
    };
  },
  onLoad(option) {
    if (option) {
      this.id = option.id;
      if (option.id == 1) {
        this.title = "营业执照";
      } else if (option.id == 2) {
        this.title = "人力资源服务许可证";
      } else {
        this.title = "增值电信业务经营许可证";
      }
    }
  },
};
</script>

<style lang="scss" scoped>
page {
  background-color: #fff;
}
.content {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
}
</style>